﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucVehicles.ascx.cs" Inherits="DentScan2.WebApp.UC.ucVehicles" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:UpdatePanel runat="server" ID="up">
    <ContentTemplate>
        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
                    <tr>
                        <td style="width: 50%;">
                            <p class="lbl">Марка</p>
                        </td>
                        <td style="text-align:left;">
                            <asp:DropDownList runat="server" ID="ddlMake" AutoPostBack="True" OnSelectedIndexChanged="ddlMake_SelectedIndexChanged" Style="height: 22px" />
                            <asp:TextBox runat="server" ID="tbMake" Visible="false" CssClass="inputNormal" />
                            <asp:FilteredTextBoxExtender ID="fteMake" runat="server" TargetControlID="tbMake" FilterMode="ValidChars" ValidChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"></asp:FilteredTextBoxExtender>
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAddMake" OnClick="ibAddMake_Click" ImageUrl="~/Img/add.png" />
                            <asp:RequiredFieldValidator ID="rfvMake" runat="server" ControlToValidate="tbMake" Display="Dynamic" EnableClientScript="False" ErrorMessage="Моля, въведете текст" ValidationGroup="vgMake"></asp:RequiredFieldValidator>
                            <asp:ImageButton runat="server" ID="bSaveMake" OnClick="bSaveMake_Click" Visible="false" ValidationGroup="vgMake" ImageUrl="~/Img/ok.png" />
                            <asp:ImageButton runat="server" ID="bCancelMake" OnClick="bCancelMake_Click" Visible="false" ImageUrl="~/Img/cancel.png" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 50%;">
                            <p class="lbl">
                                Модел
                            </p>
                        </td>
                        <td style="text-align:left;">
                            <asp:DropDownList runat="server" ID="ddlModel" />
                            <asp:TextBox runat="server" ID="tbModel" Visible="false" CssClass="inputNormal" />
                            <asp:FilteredTextBoxExtender ID="fteModel" runat="server" TargetControlID="tbModel" FilterMode="ValidChars" ValidChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"></asp:FilteredTextBoxExtender>
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAddModel" OnClick="ibAddModel_Click" ImageUrl="~/Img/add.png" />
                            <asp:RequiredFieldValidator ID="rfvModel" runat="server" ControlToValidate="tbModel" Display="Dynamic" EnableClientScript="False" ErrorMessage="Моля, въведете текст" ValidationGroup="vgModel"></asp:RequiredFieldValidator>
                            <asp:ImageButton runat="server" ID="bSaveModel" OnClick="bSaveModel_Click" Visible="false" ValidationGroup="vgModel" ImageUrl="~/Img/ok.png" />
                            <asp:ImageButton runat="server" ID="bCancelModel" OnClick="bCancelModel_Click" Visible="false" ImageUrl="~/Img/cancel.png" />
                        </td>
                    </tr>
                </table>
        <%--<asp:MultiView runat="server" ID="mv" ActiveViewIndex="0">
            <asp:View runat="server" ID="vShow">
                <table cellpadding="0" cellspacing="0" border="1" style="width: 100%;">
                    <tr>
                        <td style="width: 50%;">
                            <p class="lbl">Марка</p>
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlMake" AutoPostBack="True" OnSelectedIndexChanged="ddlMake_SelectedIndexChanged" Style="height: 22px" />
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAddMake" OnClick="ibAddMake_Click" ImageUrl="~/Img/add.png" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 50%;">
                            <p class="lbl">
                                Модел
                            </p>
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlModel" />
                        </td>
                        <td>
                            <asp:ImageButton runat="server" ID="ibAddModel" OnClick="ibAddModel_Click" ImageUrl="~/Img/add.png" />
                        </td>
                    </tr>
                </table>
            </asp:View>
            <asp:View runat="server" ID="vNew">
                <table cellpadding="0" cellspacing="0" border="1">
                    <tr>
                        <td>
                            <asp:TextBox runat="server" ID="tb" />
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="rfvTxt" runat="server" ControlToValidate="tb" Display="Dynamic" EnableClientScript="False" ErrorMessage="Моля, въведете елемент" ValidationGroup="vgVehicle"></asp:RequiredFieldValidator>
                            <asp:ImageButton runat="server" ID="bSave" OnClick="bSave_Click" ImageUrl="~/Img/ok.png" />
                            <asp:ImageButton runat="server" ID="bCancel" OnClick="bCancel_Click" ImageUrl="~/Img/cancel.png" />
                        </td>
                    </tr>
                </table>
            </asp:View>
        </asp:MultiView>--%>

    </ContentTemplate>
</asp:UpdatePanel>
